package com.example.sportplay.dao;

import com.example.sportplay.bean.User;
import com.example.sportplay.bean.car;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarDao {
    public List<User> getAllCar();
    public List<User> getAllCarplace();
    public List<User> getAllBus();
    public List<User> getProductionCar();
    public int addCar(car car);
    public int getnumber();
    public int deleteCar(@Param("name")String name);
    public List<User> getFindAllCar(@Param("name") String name);
    public List<User> getFindAllCarkong();
    public int editCar(car car);
    public int ydcwxie(@Param("username") String username,@Param("carnumber") String carnumber,@Param("name") String name);
    public List ydcwfindbycarnumber(@Param("carnumber")String carnumber);
    public List<User> getAlljiaofei();
    public List pdif(@Param("carnumber")String carnumber);
    public List<User> getAllfindjiaofei(@Param("username")String username);
    public List<User> getAllfindjiaofeiss(@Param("username")String username);
    public List ydcwfindbycarnumberfindname(@Param("carnumber")String carnumber);
    public int editUserqianshiru(car car);
    public int goout(@Param("name") String name);

}
